from ..models import Comment
from core.decorators import render

@render(type="json")
def action(request):

    unique_id = request.GET.get("uid")
    list = Comment.objects.filter(
        uid = unique_id,
        status = Comment.STATUS_PUBLISHED
    )

    return {
        'comments': list
    }